package cn.brilliantfuture.commentry.entity;

// Generated 2012-5-7 14:39:12 by Hibernate Tools 3.3.0.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
 * SendRecord generated by hbm2java
 */
@Entity
@Table(name = "send_record", catalog = "cabinet")
public class SendRecord implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Integer sendRecordId;
	private String phone;
	private String content;
	private Integer status;
	private boolean isSend;
	private Date insertTime;

	public SendRecord() {
	}

	public SendRecord(String phone,Integer status, String content, Date insertTime,boolean isSend) {
		this.isSend = isSend;
		this.status = status;
		this.phone = phone;
		this.content = content;
		this.insertTime = insertTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "send_record_id", unique = true, nullable = false)
	public Integer getSendRecordId() {
		return this.sendRecordId;
	}

	public void setSendRecordId(Integer sendRecordId) {
		this.sendRecordId = sendRecordId;
	}

	@Column(name = "phone", nullable = false, length = 11)
	@NotNull
	@Length(max = 11)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "content", nullable = false, length = 200)
	@NotNull
	@Length(max = 200)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "insert_time", nullable = false, length = 19)
	@NotNull
	public Date getInsertTime() {
		return this.insertTime;
	}

	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}

	@Column(name = "is_send", nullable = false)
	public boolean isSend() {
		return isSend;
	}

	public void setSend(boolean isSend) {
		this.isSend = isSend;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}
